package com.chen.qmzy.dao;

import com.chen.qmzy.entity.DwUserEntity;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface DwUserDao {
    DwUserEntity getDwUserList(int id);//根据id获取用户详情
    int delDwUser(int id);//删除用户（硬删除）
    int addDwUser(String uname,String password,String phone,String email,int gender,String nickName,String remark);
   int addAvatar(int id,String avatar);
    DwUserEntity login(String uname,String password);
    DwUserEntity selectByName(String uname);
    boolean update(String uname,String email,String phone,int gender,String nickName,int id);
    boolean updatapwd(int userId,String password);
}
